package com.niuwa.p2p.service.impl.business;

import java.util.List;
import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import com.niuwa.p2p.dao.business.CustClaimDao;
import com.niuwa.p2p.dao.business.InvestProdRecordDao;
import com.niuwa.p2p.dao.business.LenderProjectDao;
import com.niuwa.p2p.dao.business.LoanInvestTransferDao;
import com.niuwa.p2p.dao.business.ReceivePlanDao;
import com.niuwa.p2p.entity.business.CustClaim;
import com.niuwa.p2p.entity.business.LenderProject;
import com.niuwa.p2p.entity.business.ReceivePlan;
import com.niuwa.p2p.service.business.IInvestLoanTransferService;
import com.niuwa.p2p.vo.front.account.CustomerinvestlogVo;
import com.niuwa.p2p.vo.front.account.DailyIncomeVo;
import com.niuwa.p2p.vo.front.account.LoanInvestVo;
import com.niuwa.p2p.vo.front.account.RepaymentplanlistVo;
import com.niuwa.p2p.vo.front.account.TransferDetailVo;
@Service
public class InvestLoanTransferService implements IInvestLoanTransferService {

	@Autowired
	private LoanInvestTransferDao loanInvestTransferDao;
	
	@Autowired
	private LenderProjectDao lenderProjectDao;
	
	@Autowired
	private InvestProdRecordDao investProdRecordDao;
	
	@Autowired
	private ReceivePlanDao receivePlanDao;
	
	@Autowired
	private CustClaimDao custClaimDao;

	@Override
	public LoanInvestVo selectLoanInvestVoByCustId(Map<String, Object> param) {
		return loanInvestTransferDao.selectLoanInvestVoByCustId(param);
	}

	@Override
	public List<LenderProject> selectLoanListByLender(Map<String, Object> param) {
		return lenderProjectDao.selectLenderProListByLenderListPage(param);
	}

	@Override
	public List<CustomerinvestlogVo> selectInvestListByCustIdListPage(Map<String, Object> param) {
		return investProdRecordDao.selectInvestListByCustIdListPage(param);
	}

	@Override
	public List<ReceivePlan> selectInvestListByProNo(Map<String, Object> mapParam) {
		return receivePlanDao.selectReceiveByProNo(mapParam);
	}

	@Override
	public List<RepaymentplanlistVo> selectReceiveListByCustIdListPage(Map<String, Object> param) {
		return receivePlanDao.selectReceiveListByCustIdListPage(param);
	}

	@Override
	public List<CustClaim> selectClaimListByCustNameListPage(Map<String, Object> param) {
		return custClaimDao.selectClaimListByCustNameListPage(param);
	}

	@Override
	public List<TransferDetailVo> selectTransferListByProNo(Map<String, Object> mapParam) {
		return custClaimDao.selectTransferListByProNo(mapParam);
	}

	@Override
	public Map<String, Object> selectInvestByProNo(Map<String, Object> mapParam) {
		return custClaimDao.selectInvestByProNo(mapParam);
	}

	@Override
	public Map<String, Object> selectInvestRecordByProNoCustId(
			Map<String, Object> mapParam) {
		return investProdRecordDao.selectInvestRecordByProNoCustId(mapParam);
	}

	@Override
	public Map<String, Object> selectClaimDetailByCustIdCreditNo(
			Map<String, Object> param) {
		return custClaimDao.selectClaimDetailByCustIdCreditNo(param);
	}

	@Override
	public Map<String, Object> selectMonthlyIncomeByCustId(String custId) {
		return loanInvestTransferDao.selectMonthlyIncomeByCustId(custId);
	}

	@Override
	public List<DailyIncomeVo> selectMonthlyListIncomeByCustId(Map<String, Object> map) {
		return loanInvestTransferDao.selectMonthlyListIncomeByCustId(map);
	}

	@Override
	public Map<String, Object> selectCustClaimDetailByParam(
			Map<String, Object> param) {
		return custClaimDao.selectCustClaimDetailByParam(param);
	}
	
	
}
